// sequelize链接mysql数据库

// 加载sequelize模块
let Sequelize=require('sequelize');

// 导出链接
module.exports=new Sequelize(
  config.mysqlOptions.database,
  config.mysqlOptions.username,
  config.mysqlOptions.password,
  {
    host:config.mysqlOptions.host,
    port:config.mysqlOptions.port,
    dialect:config.mysqlOptions.dialect,
    timezone: config.mysqlOptions.timezone,
    pool:config.mysqlOptions.pool
  }
)